/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainApplicationView.java
 *
 * Created on 2011-06-12, 18:33:55
 */

package ca.etsmtl.log660.view;

import ca.etsmtl.log660.ctrl.Controller;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author iamthegD
 */
public class MainApplicationView extends javax.swing.JFrame {
    
    static ConnexionView connexionView = new ConnexionView();
   static FilmDetailView filmDetailView = new FilmDetailView();
  static  RechercheView rechercheView = new RechercheView();

    /** Creates new form MainApplicationView */
    public MainApplicationView() {
        initComponents();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(640, 480));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 672, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 384, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {

                MainApplicationView main = new MainApplicationView();
                main.setVisible(true);
               

//                ConnexionView connexionView = new ConnexionView();
//                FilmDetailView filmDetailView = new FilmDetailView();
//                RechercheView rechercheView = new RechercheView();

                Controller controller = new Controller(main, connexionView, filmDetailView, rechercheView);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
